"""
桌面
"""
from Page.Launcher.LauncherIndexPage import LauncherIndexPage
from Page.Launcher.LauncherAppListPage import LauncherAppListPage

"""
音乐
"""
from Page.Music.MusicCategoryPage import MusicCategoryPage
from Page.Music.MusicCategoryDetailPage import MusicCategoryDetailPage
from Page.Music.MusicChoicePage import MusicChoicePage
from Page.Music.MusicIndexPage import MusicIndexPage
from Page.Music.MusicMyCollectionPage import MusicMyCollectionPage
from Page.Music.MusicPlayerPage import MusicPlayerPage
from Page.Music.MusicPlayHistoryPage import MusicPlayHistoryPage
from Page.Music.MusicSearchPage import MusicSearchPage

"""
想听
"""
from Page.Xting.XtingChoicePage import XtingChoicePage
from Page.Xting.XtingIndexPage import XtingIndexPage
from Page.Xting.XtingRankPage import XtingRankPage
from Page.Xting.XtingCategoryPage import XtingCategoryPage
from Page.Xting.XtingLocalRadioPage import XtingLocalRadioPage
from Page.Xting.XtingMyCollectionPage import XtingMyCollectionPage
from Page.Xting.XtingPlayHistoryPage import XtingPlayHistoryPage
from Page.Xting.XtingPlayerPage import XtingPlayerPage

"""
车应用
"""
from Page.App.AppIndexPage import AppIndexPage
from Page.App.AppManagerPage import AppManagerPage
from Page.App.AppDownloadListPage import AppDownloadListPage
from Page.App.AppDetailPage import AppDetailPage

"""
个人中心
"""
from Page.Personal.PersonalIndexPage import PersonalIndexPage
from Page.Personal.PersonalMyCoinPage import PersonalMyCoinPage
from Page.Personal.PersonalSettingPage import PersonalSettingPage
from Page.Personal.PersonalKeyPage import PersonalKeyPage
from Page.Personal.PersonalQRcodePage import PersonalQRcode
from Page.Personal.PersonalCarinfoPage import PersonalCarinfo
from Page.Personal.PersonalCarnumberPage import PersonalCarnumber
from Page.Personal.PersonalFeedbackPage import PersonalFeedback
from Page.Personal.PersonalTaskPage import PersonalTask
from Page.Personal.PersonaNewguidePage import PersonaNewguidePage

"""
奔腾商城
"""
from Page.Shop.ShopIndexPage import ShopIndexPage

"""
车服务
"""
from Page.Service.ServiceIndexPage import ServiceIndexPage
from Page.Service.ServiceReservationPage import ServiceReservationPage
from Page.Service.ServiceMaintenanceplanPage import ServiceMaintenanceplanPage
from Page.Service.ServiceNewoperatingPage import ServiceNewoperatingPage

"""
智能家居
"""
from Page.SmartHome.SmartHomeIndexPage import SmartHomeIndexPage
from Page.SmartHome.SmartHomeXiaobaiLoginPage import SmartHomeXiaobaiLoginPage
from Page.SmartHome.SmartHomeYunmiLoginPage import SmartHomeYunmiLoginPage
from Page.SmartHome.SmartHomeXiaomiLoginPage import SmartHomeXiaomiLoginPage

# 车队
from Page.Motorcade.MotorcadeIndexPage import MotorcadeIndexPage
from Page.Motorcade.MotorcadeDetailsPage import MotorcadeDetailsPage
from Page.Motorcade.MotorcadePasswordPage import MotorcadePasswordPage
from Page.Motorcade.MotorcadeSettingPage import MotorcadeSettingPage
from Page.Motorcade.MotorcadeMapPage import MotorcadeMapPage


class CommonPage:
    """
    公共页面, 用于返回所有页面的对象, 让所有测试用例都从这个类获取页面对象
    """

    def __init__(self, driver):
        self.driver = driver

    def get_launcher_index_page(self):
        """
        获取-桌面-首页

        :return:
        """
        return LauncherIndexPage(self.driver)

    def get_launcher_app_list_page(self):
        """
        获取-桌面-列表页

        :return:
        """
        return LauncherAppListPage(self.driver)

    def get_music_category_page(self):
        """
        获取-音乐-分类页

        :return:
        """
        return MusicCategoryPage(self.driver)

    def get_music_category_detail_page(self):
        """
        获取-音乐-分类详情页

        :return:
        """
        return MusicCategoryDetailPage(self.driver)

    def get_music_choice_page(self):
        """
        获取-音乐-偏好选择页

        :return:
        """
        return MusicChoicePage(self.driver)

    def get_music_index_page(self):
        """
        获取-音乐-首页

        :return:
        """
        return MusicIndexPage(self.driver)

    def get_music_my_collection_page(self):
        """
        获取-音乐-收藏页

        :return:
        """
        return MusicMyCollectionPage(self.driver)

    def get_music_player_page(self):
        """
        获取-音乐-播放器页

        :return:
        """
        return MusicPlayerPage(self.driver)

    def get_music_play_history_page(self):
        """
        获取-音乐-播放历史页

        :return:
        """

        return MusicPlayHistoryPage(self.driver)

    def get_music_search_page(self):
        """
        获取-音乐-搜索页

        :return:
        """
        return MusicSearchPage(self.driver)

    def get_xting_choice_page(self):
        """
        获取-想听-偏好选择页

        :return:
        """
        return XtingChoicePage(self.driver)

    def get_xting_index_page(self):
        """
        获取-想听-首页

        :return:
        """
        return XtingIndexPage(self.driver)

    def get_xting_rank_page(self):
        """
        获取-想听-排行榜页

        :return:
        """
        return XtingRankPage(self.driver)

    def get_xting_category_page(self):
        """
        获取-想听-分类页

        :return:
        """
        return XtingCategoryPage(self.driver)

    def get_xting_local_radio_page(self):
        """
        获取-想听-本地电台页

        :return:
        """
        return XtingLocalRadioPage(self.driver)

    def get_xting_my_collection_page(self):
        """
        获取-想听-我的收藏页

        :return:
        """
        return XtingMyCollectionPage(self.driver)

    def get_xting_play_history_page(self):
        """
        获取-想听-播放历史页

        :return:
        """
        return XtingPlayHistoryPage(self.driver)

    def get_xting_player_page(self):
        """
        获取-想听-播放器页面

        :return:
        """
        return XtingPlayerPage(self.driver)

    def get_app_index_page(self):
        """
        获取-车应用-首页(应用管理页)

        :return:
        """
        return AppIndexPage(self.driver)

    def get_app_manager_page(self):
        """
        获取-车应用-管理页

        :return:
        """
        return AppManagerPage(self.driver)

    def get_app_download_list_page(self):
        """
        获取-车应用-下载列表页

        :return:
        """
        return AppDownloadListPage(self.driver)

    def get_app_detail_page(self):
        """
        获取-车应用-详情页

        :return:
        """
        return AppDetailPage(self.driver)

    def get_personal_index_page(self):
        """
        获取-个人中心-首页

        :return:
        """
        return PersonalIndexPage(self.driver)

    def get_personal_my_coin_page(self):
        """
        获取-个人中心-我的积分页

        :return:
        """
        return PersonalMyCoinPage(self.driver)

    def get_personal_setting_page(self):
        """
        获取-个人中心-设置页

        :return:
        """
        return PersonalSettingPage(self.driver)

    def get_personal_key_page(self):
        """
        获取-个人中心-钥匙页

        :return:
        """
        return PersonalKeyPage(self.driver)

    def get_personal_qrcode_page(self):
        """
        获取-个人中心-二维码页面

        :return:
        """
        return PersonalQRcode(self.driver)

    def get_personal_carinfo_page(self):
        """
        获取-个人中心-车辆信息页面

        :return:
        """
        return PersonalCarinfo(self.driver)

    def get_personal_carnumber_page(self):
        """
        获取-个人中心-车牌号页面

        :return:
        """
        return PersonalCarnumber(self.driver)

    def get_personal_feedback_page(self):
        """
        获取-个人中心-反馈中心页面

        :return:
        """
        return PersonalFeedback(self.driver)

    def get_personal_task_page(self):
        """
        获取-个人中心-任务中心

        :return:
        """
        return PersonalTask(self.driver)

    def get_personal_new_guide_page(self):
        """
        获取-个人中心-新手引导

        :return:
        """
        return PersonaNewguidePage(self.driver)

    def get_shop_index_page(self):
        """
        获取-商城-首页

        :return:
        """
        return ShopIndexPage(self.driver)

    def get_service_index_page(self):
        """
        获取-车服务-首页

        :return:
        """
        return ServiceIndexPage(self.driver)

    def get_service_reservation(self):
        """
        获取预约订单界面

        :return:
        """
        return ServiceReservationPage(self.driver)

    def get_service_maintenance(self):
        """
        获取-车服务-养车计划页面

        :return:
        """
        return ServiceMaintenanceplanPage(self.driver)

    def get_service_new_operating(self):
        """
        获取-车服务-新手引导页面

        :return:
        """
        return ServiceNewoperatingPage(self.driver)

    def get_smarthome_index_page(self):
        """
        获取-智能家居-首页

        :return:
        """
        return SmartHomeIndexPage(self.driver)

    def get_smarthome_xiaobai_login_page(self):
        """
        获取-智能家居- 小白登录页

        :return:
        """
        return SmartHomeXiaobaiLoginPage(self.driver)

    def get_smarthome_yunmi_login_page(self):
        """
        获取-智能家居-云米登录页

        :return:
        """
        return SmartHomeYunmiLoginPage(self.driver)

    def get_smarthome_xiaomi_login_page(self):
        """
        获取-智能家居-云米登录页

        :return:
        """
        return SmartHomeXiaomiLoginPage(self.driver)

    def get_motorcade_index_page(self):
        """
        获取-车队-首页

        :return:
        """
        return MotorcadeIndexPage(self.driver)

    def get_motorcade_details_page(self):
        """
        获取-车队-详情页

        :return:
        """
        return MotorcadeDetailsPage(self.driver)

    def get_motorcade_password_page(self):
        """
        获取-车队-口令界面

        :return:
        """
        return MotorcadePasswordPage(self.driver)

    def get_motorcade_setting_page(self):
        """
        获取-车队-信息设置界面

        :return:
        """
        return MotorcadeSettingPage(self.driver)

    def get_motorcade_map_page(self):
        """
        获取-车队-地图界面

        :return:
        """
        return MotorcadeMapPage(self.driver)
